﻿/********************************************************************
	日期:2022/03/27
	名称:Constants
	邮箱:yunnibbd@163.com
	作者:yunni
	描述:常量配置
*********************************************************************/

using UnityEngine.UI;

public enum TxtColor{
	Red,
	Green,
	Blue,
	Yellow
}

public enum DamageType{
	None,
	AD = 1,
	AP = 2
}

public class Constants{
	public const string colorRed = "<color=#FF0000FF>";
	public const string colorGreen = "<color=#00FF00FF>";
	public const string colorBlue = "<color=#00B4FFFF>";
	public const string colorYellow = "<color=#FFFF00FF>";
	public const string colorEnd = "</color>";

	public static string Color(string str, TxtColor c){
		string result = "";
		switch (c){
			case TxtColor.Red:
				result = colorRed + str + colorEnd;
				break;
			case TxtColor.Green:
				result = colorGreen + str + colorEnd;
				break;
			case TxtColor.Blue:
				result = colorBlue + str + colorEnd;
				break;
			case TxtColor.Yellow:
				result = colorYellow + str + colorEnd;
				break;
		}

		return result;
	}

	//AutoGuideNPC
	public const int NPCWiseMan = 0;
	public const int NPCGeneral = 1;
	public const int NPCArtisan = 2;
	public const int NPCTrader = 3;

    //登录场景名称
    public const string SceneLogin = "SceneLogin";

    public const int MainCityMapID = 10000;
    //主城场景名称
    //public const string SceneMainCity = "SceneMainCity";
    //背景音乐名
    public const string BGLogin = "bgLogin";
    //主城背景音乐
    public const string BGMainCity = "bgMainCity";
    //战斗背景音乐
    public const string BGHuangYe = "bgHuangYe";
    //登录按钮音效
    public const string UILoginBtn = "uiLoginBtn";
    //常规UI点击音效
    public const string UIClickBtn = "uiClickBtn";
    public const string UIExtenBtn = "uiExtenBtn";
    public const string UIOpenPage = "uiOpenPage";
    public const string FBIItemEnter = "fbitem";
    //屏幕标准宽高比
    public const int ScreenStandardWidth = 1334;
    public const int ScreenStandardHeight = 750;
    //遥感点标准距离
    public const int ScreenOpDis = 90;
    //Action触发参数
    public const int ActionDefault = -1;
    public const int ActionBorn = 0;
    public const int ActionDie = 100;
    public const int ActionHit = 101;

    public const int DieAniLength = 5000;
    
    //混合参数
    public const int BlendIdle = 0;
    public const int BlendMove = 1;
    //角色移动速度
    public const int PLayerMoveSpeed = 8;
    public const int MonsterMoveSpeed = 8;
    //运动平滑加速度
    public const int AccelerSpeed = 5;
    public const float AccelerHpSpeed = 0.3f;
    
    //普攻连招的有效间隔
    public const int ComboSpace = 500;
}
